const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  productionSourceMap: false,
  lintOnSave: false,
  devServer: {
    port: 8080,
    proxy: {
      '/backend': {      //遇见api前缀的请求，就会触发此代理配置
        target: 'http://localhost:8088',  //需要代理的后端接口地址
        secure: false,  //如果是https接口，将此参数设为true
        changeOrigin: true,   //是否跨域,设成true表示允许跨域
        pathRewrite:{
          '^/backend':'/iotshudt-web'
        }
        
      }
    }
  }
})